package com.ontheroad.user.service;

import java.util.HashMap;

import org.springframework.remoting.service.annotation.RemoteService;

import cn.modoumama.service.base.BaseService;

import com.ontheroad.api.response.Response;
import com.ontheroad.user.model.UserDto;
import com.ontheroad.user.model.UserEntity;

/**
 * 用户接口
 * @author yongtao.huang
 *
 */
@RemoteService
public interface UserTopicService extends BaseService<UserEntity, String> {

    /**
     * 注册 
     * @param userDto
     * @return
     * @throws Exception
     */
    HashMap<String, Object> regist(UserDto userDto) throws Exception;
    
    /**
     * 登入
     * @param userDto
     * @return
     * @throws Exception
     */
    HashMap<String, Object>  login(UserDto userDto) throws Exception;
    
    /**
     * 修改密码
     * @param userDto
     * @return
     * @throws Exception
     */
    HashMap<String, Object>  resetPasswrod(UserDto userDto) throws Exception;
    
    
    /**
     * 第三方登入
     * @param request
     * @return
     * @throws Exception
     */
    Response ThirdLogin(UserDto userDto) throws Exception;
}
